home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Xext / XdbeSwapBuffers.z / XdbeSwapBuffers
Encoding:
Text File  |  1998-10-30  |  4.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXddddbbbbeeeeSSSSwwwwaaaappppBBBBuuuuffffffffeeeerrrrssss((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXddddbbbbeeeeSSSSwwwwaaaappppBBBBuuuuffffffffeeeerrrrssss((((3333XXXX11111111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XdbeSwapBuffers - swaps front and back DBE buffers.
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           #include <X11/extensions/Xdbe.h>
  13.  
  14.           Status XdbeSwapBuffers(
  15.               Display      *dpy,
  16.               XdbeSwapInfo *swap_info,
  17.               int          num_windows)
  18.  
  19.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.           This function swaps the front and back buffers for a list of
  21.           windows.  The argument _n_u_m__w_i_n_d_o_w_s specifies how many
  22.           windows are to have their buffers swapped; it is the number
  23.           of elements in the _s_w_a_p__i_n_f_o array.  The argument _s_w_a_p__i_n_f_o
  24.           specifies the information needed per window to do the swap.
  25.  
  26.           The _X_d_b_e_S_w_a_p_I_n_f_o structure has the following fields:
  27.  
  28.                Window            swap_window
  29.                XdbeSwapAction    swap_action
  30.  
  31.           _s_w_a_p__w_i_n_d_o_w specifies the window for which to swap buffers.
  32.           _s_w_a_p__a_c_t_i_o_n specifies the swap action to use for this
  33.           _s_w_a_p__w_i_n_d_o_w.
  34.  
  35.           _s_w_a_p__a_c_t_i_o_n determines what will happen to the new back
  36.           buffer of the _s_w_a_p__w_i_n_d_o_w it is paired with in the list in
  37.           addition to making the old back buffer become visible.  The
  38.           defined actions are as follows:
  39.  
  40.  
  41.           XdbeUndefined
  42.                The contents of the new back buffer become undefined.
  43.                This may be the most efficient action since it allows
  44.                the implementation to discard the contents of the
  45.                buffer if it needs to.
  46.  
  47.           XdbeBackground
  48.                The unobscured region of the new back buffer will be
  49.                tiled with the window background.  The background
  50.                action allows devices to use a fast clear capability
  51.                during a swap.
  52.  
  53.           XdbeUntouched
  54.                The unobscured region of the new back buffer will be
  55.                unmodified by the swap.
  56.  
  57.           XdbeCopied
  58.                The unobscured region of the new back buffer will be
  59.                the contents of the old back buffer
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXddddbbbbeeeeSSSSwwwwaaaappppBBBBuuuuffffffffeeeerrrrssss((((3333XXXX11111111))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXddddbbbbeeeeSSSSwwwwaaaappppBBBBuuuuffffffffeeeerrrrssss((((3333XXXX11111111))))
  71.  
  72.  
  73.  
  74.      EEEERRRRRRRROOOORRRRSSSS
  75.           BadMatch
  76.                A non-double-buffered window was specififed or a window
  77.                was specified twice.
  78.  
  79.           BadWindow
  80.                An invalid window was specified.
  81.  
  82.           BadValue
  83.                An invalid swap action was specified.
  84.  
  85.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  86.           DBE, _X_d_b_e_A_l_l_o_c_a_t_e_B_a_c_k_B_u_f_f_e_r_N_a_m_e(), _X_d_b_e_B_e_g_i_n_I_d_i_o_m(),
  87.           _X_d_b_e_D_e_a_l_l_o_c_a_t_e_B_a_c_k_B_u_f_f_e_r_N_a_m_e(), _X_d_b_e_E_n_d_I_d_i_o_m(),
  88.           _X_d_b_e_F_r_e_e_V_i_s_u_a_l_I_n_f_o(), _X_d_b_e_G_e_t_B_a_c_k_B_u_f_f_e_r_A_t_t_r_i_b_u_t_e_s(),
  89.           _X_d_b_e_G_e_t_V_i_s_u_a_l_I_n_f_o(), _X_d_b_e_Q_u_e_r_y_E_x_t_e_n_s_i_o_n().
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.